/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ModelLayer;
import java.util.ArrayList;

/**
 *
 * @author Claus
 */
public class Supplier
{
	String name;
	String address;
	String country;
	String countryCode;
	String phoneNo;
	String email;
	int supplierID;
	ArrayList<Product> products;

	public Supplier()
	{
		this.name = "";
		this.address = "";
		this.country = "";
		this.countryCode = "";
		this.phoneNo = "";
		this.email = "";
		this.supplierID = 0;
	}

        public Supplier(int id)
        {
            supplierID = id;
        }
        

	public Supplier(String name, String address, String country, String countryCode, String phoneNo, String email, int supplierID)
	{
		this.name = name;
		this.address = address;
		this.country = country;
		this.countryCode = countryCode;
		this.phoneNo = phoneNo;
		this.email = email;
		this.supplierID = supplierID;
	}

	public void addProduct(Product product)
	{
		products.add(product);
	}

	public String getAddress()
	{
		return address;
	}

	public void setAddress(String address)
	{
		this.address = address;
	}

	public String getCountry()
	{
		return country;
	}

	public void setCountry(String country)
	{
		this.country = country;
	}

	public String getCountryCode()
	{
		return countryCode;
	}

	public void setCountryCode(String countryCode)
	{
		this.countryCode = countryCode;
	}

	public String getEmail()
	{
		return email;
	}

	public void setEmail(String email)
	{
		this.email = email;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getPhoneNo()
	{
		return phoneNo;
	}

	public void setPhoneNo(String phoneNo)
	{
		this.phoneNo = phoneNo;
	}

	public ArrayList<Product> getProducts()
	{
		return products;
	}

	public void setProducts(ArrayList<Product> products)
	{
		this.products = products;
	}



	public int getSupplierID()
	{
		return supplierID;
	}

	public void setSupplierID(int supplierID)
	{
		this.supplierID = supplierID;
	}




}
